//
//  MYGSystemTypeCellModel.swift
//  MYGrow
//
//  Created by 小火科技 on 2024/2/29.
//

import UIKit

struct MYGSystemTypeCellModel {
    var image: String
    var name: String
    var isSel: Bool
    var num: Int
    var type: MYGSystemMessageType
}


import HandyJSON

class MYGMessageNumModel: HandyJSON {
    
    var success = ""
    var data:[MYGNumModel] = []
    var msg = ""
    var status = ""
    
    required init() {
    }
}

class MYGNumModel: HandyJSON {
    var type = 0
    var count = 0
    
    required init() {
    }
}


class MYGSysMessageModel : HandyJSON {
    var id = 0
    var to_user_id = 0
    var from_user_id = 0
    var message = ""
    var status = 0
    var created_at = ""
    var updated_at = ""
    var from_patient_id = 0
    var jump_id = ""
    var msg_status = 0
    var to_patient_id = 0
    var type = 0
    var from_doctor = MYGSysMessageApplyModel()
    
    required init() {
    }
}

class MYGSysMessageApplyModel : HandyJSON {
    var avatar = ""
    var department = ""
    var hospital = ""
    var id = 0
    var im_user_id = ""
    var name = ""
    var phone = ""
    var title = ""
    var user_id = 0
    required init() {
    }
}

class MYGMessageMessageListModel : HandyJSON {
    var success = ""
    var data:[MYGSysOtherMessageModel] = []
    var msg = ""
    var status = ""

    required init() {
    }
}


class MYGSysOtherMessageModel : HandyJSON {
    var case_id = 0
    var case_range = ""
    var created_at = ""
    var date_end = ""
    var date_start = ""
    var deleted_at = ""
    var doctor = MYGSysMessageApplyModel()
    var doctor_id = 0
    var id = 0
    var message = ""
    var origin_doctor = MYGSysMessageApplyModel()
    var origin_id = 0
    var patient = MYGSysPatientModel()
    var patient_id = 0
    var status = 0
    var type = 0
    var updated_at = ""
    
    required init() {
    }
}

class MYGSysPatientModel : HandyJSON {
    var id = 0
    var im_user_id = ""
    var name = ""
    required init() {
    }
}
